package cn.edu.lingnan.pojo;


public class Competition {
    private int id;
    private String name;
    private String description;
    private String start_time;
    private String end_time;

    public Competition() {
    }

    public Competition(int id, String name, String description, String start_time, String end_time) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.start_time = start_time;
        this.end_time = end_time;
    }

    public Competition(String name, String description, String start_time, String end_time) {
        this.name = name;
        this.description = description;
        this.start_time = start_time;
        this.end_time = end_time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getStart_time() {
        return start_time;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }

    public String getEnd_time() {
        return end_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Competition{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", description='").append(description).append('\'');
        sb.append(", start_time='").append(start_time).append('\'');
        sb.append(", end_time='").append(end_time).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
